package demo02;

public class MyAnother {
    public void anotherMethod(){
        System.out.println(new MyClass().num);//MyClass中的num是成员变量，没有static就要new
    }
}
